#ifndef QGRAVITY_H
#define QGRAVITY_H

#include "qlife.h"

class Dna;

/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class QGravity : public QLife
{
		Q_OBJECT

	public:
		QGravity ( QGame* parent, Dna* dna, int n, int width, int height );

	protected:
		void run();
		void think();
		void collectData();
		QString getName();
		void initDecay();
		void decay();

	private:
		QString name;
};

#endif
